﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using QuanLyKho.Server;

namespace QuanLyKho.Report
{
	public partial class rptTheKho : DevExpress.XtraReports.UI.XtraReport
	{	
		public rptTheKho()
		{
			InitializeComponent();
		}

        public void BindHeader(Dm_Thuoc dmThuoc)
        {
            xrTenHang.Text = dmThuoc.TenThuocHamLuong;
            xrDVT.Text = dmThuoc.Dm_DonViTinh.TenDonViTinh;
            xrQuyCach.Text = dmThuoc.Dm_QuyCach.TenQuyCach;
        }

        public void BindDetails()
        {
            xrNgay.DataBindings.Add("Text", DataSource, "NgayDDMMYYYY");
            xrSCTNhap.DataBindings.Add("Text", DataSource, "SCTNhap");
            xrSCTXuat.DataBindings.Add("Text", DataSource, "SCTXuat");
            xrTenNhaPhanPhoi.DataBindings.Add("Text", DataSource, "TenNhaPhanPhoi");
            xrSLNhap.DataBindings.Add("Text", DataSource, "SLNhapString");
            xrSLXuat.DataBindings.Add("Text", DataSource, "SLXuatString");
            xrGhiChu.DataBindings.Add("Text", DataSource, "GhiChu");
        }
	}
}
